from rest_framework.serializers import ModelSerializer
from myapp.models import *


class BrandSer(ModelSerializer):
    class Meta:
        fields = '__all__'
        model = BrandModel


class CarSer(ModelSerializer):
    class Meta:
        fields = '__all__'
        model = CarModel


class CateSer(ModelSerializer):
    class Meta:
        fields = '__all__'
        model = CateModel


class BookSer(ModelSerializer):
    class Meta:
        fields = '__all__'
        model = BookModel


